import 'package:enterprise_v6_app/app/components/toast_widget.dart';
import 'package:enterprise_v6_app/app/core/core.dart';
import 'package:enterprise_v6_app/app/data/entities/application/apply_bean.dart';
import 'package:enterprise_v6_app/app/modules/application/controller.dart';

class MoreApplyController extends GetxController {
  /// 应用列表
  List<ApplyBean> allApplyList = [];

  @override
  void onInit() {
    super.onInit();
    allApplyList.addAll(Get.find<ApplyController>().allApplyList);
  }

  //跳转到对应模块页面
  void toModulePage(ApplyBean bean) {
    if (bean.routes.trim().isNotEmpty) {
      Get.toNamed(bean.routes);
    } else {
      AppToast.show('模块暂未解锁~');
    }
  }
}
